package demo.udp;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.util.Scanner;

public class UDP_Client {
    public static void main(String[] args) throws IOException {
        DatagramChannel datagramChannel = DatagramChannel.open();
        //设置是否阻塞
        datagramChannel.configureBlocking(false);
        //定义一个buffer
        ByteBuffer byteBuffer = ByteBuffer.allocate(100);

        Scanner scanner=new Scanner(System.in);
    }
}
